package com.szrt.java.day20170104.demo07;

import com.szrt.java.day20170104.demo08.Student;

public class StudentTest {
	
	public static void main(String[] args) {
		
		/*Student  zxx = new Student("zxx");
		System.out.println(zxx.studentCounter);
		Student  lxx = new Student("lxx");
		System.out.println(lxx.studentCounter);
		Student  wxx = new Student("wxx");
		System.out.println(wxx.studentCounter);
		
		
		System.out.println(lxx.studentCounter);*/
		System.out.println(Student.studentCounter);  //static 跟类走  也就说说可以不需要new 可以在类上调用
		System.out.println(Student.COUNTER);         //static final 跟类走  也就说说可以不需要new 可以在类上调用  final 比如1周7天
		
	}

}
